﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DMSClient
{
    public partial class QuotaAndStore : Form
    {
        public QuotaAndStore()
        {
            InitializeComponent();
        }

        private void btnQuota_Click(object sender, EventArgs e)
        {
            try
            {
                QuotaServices.IQuotaClient QuotaSrv = new DMSClient.QuotaServices.IQuotaClient();
                dgQuota.DataSource = QuotaSrv.QuotaByDistributor("RABIE");
            }
            catch (Exception)
            {
                
                throw;
            }
        }

        private void btnStore_Click(object sender, EventArgs e)
        {
            try
            {
                StoreServices.IStoreClient StoreSrv = new DMSClient.StoreServices.IStoreClient();
                dgStore.DataSource = StoreSrv.StoreByDistributor("RABIE");
            }
            catch (Exception)
            {

                throw;
            }
        }

        
    }
}
